<?php

class Application_Form_modifaffichstat extends Zend_Form
{
	
    public function init()
    {
     	$datedebut = new Zend_Form_Element_Text("debut");
    	//$creation->setLabel("Date de création :");
    	$datedebut->setAttrib('class', 'small');
    	$datedebut->setAttrib('type', 'text');
    	$datedebut->setAttrib('id', 'debut');
    	$datedebut->setAttrib('data-datepicker', 'datepicker');
    	$datedebut->setAttrib('data-date-format', 'dd/mm/yyyy');
    	$datedebut->setAttrib('placeholder', 'date début');
    	
    	$datefin = new Zend_Form_Element_Text("fin");
    	//$creation->setLabel("Date de création :");
    	$datefin->setAttrib('class', 'small');
    	$datefin->setAttrib('type', 'text');
    	$datefin->setAttrib('id', 'fin');
    	$datefin->setAttrib('data-datepicker', 'datepicker');
    	$datefin->setAttrib('data-date-format', 'dd/mm/yyyy');
    	$datefin->setAttrib('placeholder', 'date de fin');
    	
    	$nbrinscrits = new Zend_Form_Element_Text("nbrinscrits");
    	$nbrinscrits->setAttrib('id', 'nbrinscrits');
    	$nbrinscrits->setAttrib('placeholder','nombre d\'inscrits');
    	
    	$nbrabondons = new Zend_Form_Element_Text("nbrabondons");
    	$nbrabondons->setAttrib('id', 'nbrabondons');
    	$nbrabondons->setAttrib('placeholder', 'nombre d\'abondons');
    	
    	$nbraadmis = new Zend_Form_Element_Text("nbradmis");
    	$nbraadmis->setAttrib('id', 'nbraadmis');
    	$nbraadmis->setAttrib('placeholder', 'nombre d\'admis');
    	
    	$tuteur = new Zend_Form_Element_Select("Tuteur");
    	$tuteur->setMultiOptions(array('0'=>'Choisir coordinateur', '1' => 'tuteur2', '2' => 'tuteur3', '3' => 'tuteur4'));
    	//$tuteur->setLabel("Coordinateur :");
    	
    	$this->addElements(array($datedebut,$datefin, $nbrinscrits, $nbrabondons, $nbraadmis, $tuteur));
    	$this->setElementDecorators(array(
    			array('ViewHelper', array('tag'   => 'div', "class"=>"controls")),
    			array('Label' , array(  "class"=>"control-label")),
    			'Errors',
    			new Zend_Form_Decorator_HtmlTag(array(
    					'tag'   => 'div', "class"=>"control-group"
    			))
    	));
    	
    }
}